package com.romotc.qqrobot.webqq.qqInterfaceLog;

import java.util.HashMap;
import java.util.Map;


public class QQUrlLogFactory {

	private static Map<String, QQUrlLogInterface> logMap = new HashMap<String, QQUrlLogInterface>();;
	
	public static synchronized QQUrlLogInterface getQQUrlLog(String clazzName) throws Exception {
		QQUrlLogInterface qqLog = logMap.get(clazzName);
		if(qqLog == null) {
			QQUrlLogInterface qqurlLog = (QQUrlLogInterface) Class.forName(clazzName).newInstance();
			logMap.put(clazzName, qqurlLog);
			return qqurlLog;
		}else
		{
			return qqLog;
		}
	}
}
